package com.grace.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grace.dao.UserDao;
import com.grace.pojo.User;
import com.grace.service.LoginService;

@Service
public class LoginServiceImpl implements LoginService {

	@Autowired
	private UserDao userDao;
	
	public User login(String name, String password) {
		User user = userDao.login(name, password);
		if (user !=null) {
			return user;
			
		}
		return null;
	}

}
